package com.example.user.controller;

import com.example.user.service.AuthorService;
import com.usian.model.user.dtos.FollowUserDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者控制器
 *
 */
@RestController
@RequestMapping("/user/author/v1")
public class AuthorController {
    @Autowired
    private AuthorService authorService;
    
    @PostMapping("/follow")
    public ResponseResult follow(@RequestBody FollowUserDto followUserDto){
        return authorService.follow(followUserDto);
    }
}
